package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.AttrGroupVo;
import com.atguigu.gulimall.product.vo.AttrVo;
import com.atguigu.gulimall.product.vo.ReturnArrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.gulimall.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author wangliang
 * @email wangliang@gmail.com
 * @date 2023-11-07 21:19:43
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveArrInfo(AttrVo attr);

    PageUtils queryPage(Map<String, Object> params, Long catelogId,String attrtype);

    ReturnArrVo getDetail(Long attrId);

    void updateDetail(AttrVo attr);

    List<AttrEntity> getGroupAttrRelation(Long attrGroupId);

    void deleteGroupAttrRelation(List<AttrGroupVo> attrgroupRelationEntities);

    PageUtils getNoGroupArrRelation(Map<String, Object> params, Long attrgroupId);

}

